﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:Chapter10="clr-namespace:FSharp.Chapter10;assembly=FSharpLibrary">
	<ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="/Chapters;component/Themes/CustomChromeWindow.Generic.xaml" />
		<ResourceDictionary Source="/Chapters;component/Chapter18/RangeSelector.xaml" />
	</ResourceDictionary.MergedDictionaries>
	
	<SolidColorBrush x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type Chapter10:SkinThemeControl}, ResourceId=BackgroundBrush}"
					 Color="GreenYellow" />

	<SolidColorBrush x:Key="RegularBrush"
					 Color="SlateBlue" />
	
	<Style x:Key="{x:Type Chapter10:SkinThemeControl}"
		   TargetType="Chapter10:SkinThemeControl">
		<Setter Property="Background"
				Value="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type Chapter10:SkinThemeControl}, ResourceId=BackgroundBrush}}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Chapter10:SkinThemeControl">
					<Border Background="{TemplateBinding Background}">
						<ContentPresenter Content="{TemplateBinding Content}"
										  ContentTemplate="{TemplateBinding ContentTemplate}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>
